Skip to content

fix: Stop validating View-provided stream name against instrument name syntax#3518

Merged
cijothomas merged 3 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/views-skip-name-validation
May 20, 2026
Merged

fix: Stop validating View-provided stream name against instrument name syntax#3518
cijothomas merged 3 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/views-skip-name-validation

Conversation

@cijothomas
Copy link
Copy Markdown
Member

@cijothomas cijothomas commented May 15, 2026

Per the OpenTelemetry specification clarification in open-telemetry/opentelemetry-specification#5094, the View-provided stream name is NOT subject to the instrument name syntax and the SDK MUST NOT validate it against that syntax.

Removes the name-syntax validation (empty / length / first-char-alpha / allowed-chars) from StreamBuilder::build(). unit, cardinality limit, and histogram-bucket validation are unchanged. Direct instrument creation via Meter continues to enforce the syntax.

Spec PR: open-telemetry/opentelemetry-specification#5094

Update (2026-05-19): Spec PR open-telemetry/opentelemetry-specification#5094 has been merged.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

❌ Patch coverage is 95.23810% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82.8%. Comparing base (7214567) to head (83786d7).

Files with missing lines Patch % Lines
opentelemetry-sdk/src/metrics/instrument.rs 95.2% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #3518     +/-   ##
=======================================
- Coverage   82.8%   82.8%   -0.1%     
=======================================
  Files        130     130             
  Lines      27289   27262     -27     
=======================================
- Hits       22618   22591     -27     
  Misses      4671    4671             

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cijothomas cijothomas changed the title Stop validating View-provided stream name against instrument name syntax fix: Stop validating View-provided stream name against instrument name syntax May 15, 2026
@cijothomas cijothomas marked this pull request as ready for review May 19, 2026 05:43
@cijothomas cijothomas requested a review from a team as a code owner May 19, 2026 05:43
@cijothomas cijothomas enabled auto-merge May 20, 2026 04:48
@cijothomas cijothomas added this pull request to the merge queue May 20, 2026
Merged via the queue into open-telemetry:main with commit 8c3eeca May 20, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants